﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace Lonewolf.Entity
{
    public class EFDbContext : DbContext
    {

        public EFDbContext(DbContextOptions<EFDbContext> options) : base(options)
        {
        }
        /// <summary>
        /// 管理员信息表
        /// </summary>
        public DbSet<AdminInfo> AdminInfo { get; set; }
        /// <summary>
        /// 权限信息表
        /// </summary>
        public DbSet<RoleInfo> RoleInfo { get; set; }
        /// <summary>
        /// 管理员-角色表
        /// </summary>
        public DbSet<AdminRole> AdminRole { get; set; }
        /// <summary>
        /// 登录信息表
        /// </summary>
        public DbSet<LoginInfo> LoginInfo { get; set; }
        /// <summary>
        /// 菜单信息表
        /// </summary>
        public DbSet<MenuInfo> MenuInfo { get; set; }
        /// <summary>
        /// 角色-菜单信息表
        /// </summary>
        public DbSet<RoleMenu> RoleMenu { get; set; }
        /// <summary>
        /// 组织信息表
        /// </summary>
        public DbSet<OrganizationInfo> OrganizationInfo { get; set; }
        /// <summary>
        /// 文章信息表
        /// </summary>
        public DbSet<ArticleInfo> ArticleInfo { get; set; }


    }
}
